package com.bball.court.controller.play;

import android.content.Context;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.bball.court.FaCConfiguration;
import com.bball.court.controller.CourtController4Test;
import com.bball.court.http.DeleteCourtRequest;
import com.bball.court.http.DeleteCourtRequestCallbacks;

public class PlayCourtController4Test extends PlayCourtController implements CourtController4Test {

    public PlayCourtController4Test(Context context) {
        super(context);
    }

    @Override
    public void deleteCourt(String courtId, DeleteCourtRequestCallbacks callbacks) {
        String url = FaCConfiguration.getInstance(context).getPlayDeleteCourtUrl(courtId);
        getRequestQueue().add(new DeleteCourtRequest(context, url, getClass().getSimpleName(), callbacks));
    }
    
    @Override
    protected RequestQueue getRequestQueue() {
        return Volley.newRequestQueue(context);
    }
}
